<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 打印九九乘法表三次 -->
    <script>
        // 创建函数
        function can() {
            //外循环控制行数
            for (let i = 0; i <= 9; i++) {
                //内循环控制列数
                for (let j = 1; j <= i; j++) {
                    document.write(`${i}*${j}=${i * j}`)
                }
                document.write('<br>')
            }
        }
        can()
        can()
        can()
    </script>
</body>

</html>